﻿using System;
using System.Collections.Generic;
using System.Text;
using SHDocVw;

namespace BindingIEBrowser
{
    public class IEInstanceItems
    {	

        public IEInstanceItems(IWebBrowser pWebBrowser)
        {
            this.LocationName = pWebBrowser.LocationName;
            this.LocationURL = pWebBrowser.LocationURL;
            try
            {
                this.Type = pWebBrowser.Type;
            }
            catch (Exception e)
            {

                //this.Type = "Type Cast Failed!";
                this.Type = e.Message;
            }

        }

        public string Type { get; private set; }

        public string LocationName { get; private set; }//Classic

        public string LocationURL { get; private set; }
    }
}
